package com.ego.coupon.po;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;

import com.ego.coupon.vo.SkuReductionVo;
import lombok.Data;

/**
 * @program: ego
 * @description 商品满减信息
 * @author KamTang
 * @date 2022-11-13 13:17:12
 */
@Data
@TableName("sms_sku_full_reduction")
public class SkuFullReduction implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private Long id;
	/**
	 * spu_id
	 */
	private Long skuId;
	/**
	 * 满多少
	 */
	private BigDecimal fullPrice;
	/**
	 * 减多少
	 */
	private BigDecimal reducePrice;
	/**
	 * 是否参与其他优惠
	 */
	private Integer addOther;

	public static SkuFullReduction fromVo(SkuReductionVo vo) {
		System.out.println("执行了static fromVo方法");
		return BeanUtil.copyProperties(vo, SkuFullReduction.class);
	}
}
